My images are not used in training
The summary of a training says how many images it will use, and that number is often lower than the images of the dataset. A training only takes the images it can learn from and that you asked for. This page lists every reason an image stays out, where to see it and what to do.
Where to see it
Open the dataset, go to «Models», click «Train a new model» and choose «Production training». Without training anything you can read:
- «Images and tags». Each tag with its images (or, in detection and segmentation, the images with annotations of that tag), ticked or not.
- «Data division». How many images go to training, validation and test.
- The summary on the right. «Images» and «Tags», and any requirement that is missing, in red.
The «Overview» tab of the dataset has the same checks as a list: see Check that a dataset is ready to train.
Why an image stays out
| Reason | Which datasets | What to do |
|---|---|---|
| It has no tag. Images nobody has labeled are «Unclassified», a system tag that is left unticked. | All | Label them: Label images for classification or the guide of your dataset type. |
| It is still «Pending». Only reviewed images are trained; the summary says «Pending images are not counted». | Object detection, oriented boxes, segmentation, text recognition | Review the image in the editor, or validate its annotations: Review and validate annotations. |
| Its tag is not ticked. A training learns the ticked tags only, and only their images go in. | All | Tick the tag in «Images and tags». |
| Its tag has fewer than 10 images. The platform leaves such a tag unticked, and ticking it shows «Below the minimum» and a requirement in the summary. In detection and segmentation the minimum is 10 annotations. | All | Add images of that tag, or train it together with a similar tag under one «Output label»: Choose the images, tags and split of a training. |
| It is not in the chosen groups. With «Filter by groups», only the images of the ticked groups go in. | Datasets with groups | Tick its group, or choose «Whole dataset». |
| It is still «Predetermined» with «Current labeled». That split uses the division each image already has, and an image without one has none to use. | All | Give it a division, or choose «Auto assignment»: Set the train, validation and test split. |
Images that go in, but not to learn from
Every image of the training goes to one of three sets, and only the training set teaches the model. With «Auto assignment», 10 % of the images go to validation, which checks the model while it trains, and 10 % to test, which judges the finished model. The images of the last two are used: they are where the scores come from. In a small dataset you can move the sliders, but keep a few images in each.
When the training cannot start
The summary lists what is missing before «Train» can be pressed:
- «Must have at least 10 labeled images». Classification and anomaly detection need ten labeled images in all.
- «Must select at least 2 classes for training». A classification model needs two tags or more to choose between.
- «The "…" tag must have at least 10 images for the tag», or 10 annotations in detection and segmentation.
- «Test division must have at least 1 image» and «Validation division must have at least 1 image», with «Current labeled».
- «Not enough tokens». The price of the training is more than the project has left this period.
«There are repeated image names» is only a warning: two images with the same file name are both trained, but they are harder to tell apart in the results.